package service;

import pojo.User;

import java.util.List;

public interface UserService {
    boolean register(User user);
    // 登录
    User login(User user);
    boolean updateUser(User user);
    User getUserById(int  userId);


    boolean changePassword(String username, String currentPassword, String newPassword);

    boolean removeById  (int  userId);//删除用户


    List<User> selectUserListByNameAndStatus(String nickName, String status);

    List<User> selectUserList(Integer startIndex, Integer targetTotal);

    Integer getTotalUserCount();
}
